<?php

    function get_tax_amount($tax_id_or_obj, $price, $qty=1){
        $obj = get_object($tax_id_or_obj, "tax_m_tax");
        //@TO_DO : consider multi currency here
        return ($obj->rate/100) * $price * $qty;
    }

    function get_tax_classes($site_id=NULL,$reload=FALSE){
        $service = new service_l_tax();
        return $service->get_tax_classes($site_id,$reload);
    }
?>
